package com.loans.product.controller.cuser;

import com.loans.product.domain.TbProduct;
import com.loans.product.service.ITbProductService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("product/cuser")
public class ProductController extends BaseController {
    @Autowired
    private ITbProductService tbProductService;

    /**
     * 查询产品列表
     */
    @GetMapping("/list")
    public TableDataInfo list(TbProduct tbProduct)
    {
        startPage();
        List<TbProduct> list = tbProductService.selectTbProductList(tbProduct);
        return getDataTable(list);
    }
}
